package com.xyf.sys.service.impl;

import com.xyf.sys.domain.DictData;
import com.xyf.sys.mapper.DictDataMapper;
import com.xyf.sys.service.IDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author R-H
 * @Date 2024/2/231803
 * @Description
 */
@Service
public class DictDataServiceImpl implements IDictDataService {

    @Autowired
    private DictDataMapper dictDataMapper;

    @Override
    public DictData get(Long dictCode) {
        return dictDataMapper.selectDictDataById(dictCode);
    }

    @Override
    public List<DictData> list(String dictType) {
        return dictDataMapper.selectDictDataByType(dictType);
    }
}
